package com.yiji.fintech.musfinance.common.strategy.context;

import com.yiji.fintech.musfinance.center.notify.order.base.NotifyOrderBase;
import com.yiji.fintech.musfinance.center.notify.result.NotifyResult;
import com.yiji.fintech.musfinance.common.strategy.notify.NotifyStrategyBase;

/**
 * 异步通知
 * Created by ouwen@yiji.com} on 2017/9/25.
 */
public class NotifyContext {
    private NotifyStrategyBase notifyStrategy;
    public NotifyContext(NotifyStrategyBase notifyStrategy) {
        this.notifyStrategy = notifyStrategy;
    }
    public NotifyResult doNofity(NotifyOrderBase notifyOrder,NotifyResult result){
       return notifyStrategy.doExcute(notifyOrder,result);
    }
}
